package org.principles.demo5;

public class Agent {
    private Star star;

    private Fans fans;

    private Company company;

    public void setStar(Star star) {
        this.star = star;
    }

    public void setFans(Fans fans) {
        this.fans = fans;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public void meet() {
        System.out.println(star.getName() + " 与 " + fans.getName() + "见面");
    }

    public void business() {
        System.out.println(star.getName() + " 与 " + company.getName() + "签约了");
    }
}
